<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
	<head/>
	<f:loadBundle basename="messages" var="msg"/>
	<body>
		<f:view>
			<h:form>
				<h2><h:outputText value="#{msg.studentEditorWelcome}"/>
				<h:outputText value="#{student.firstName}"/>
				<h:outputText value="#{student.lastName}"/></h2>
				<h:outputText value="#{msg.studentEditorDescription}"/><hr/>

				<h:panelGrid columns="2">
					<h:outputLabel value="#{msg.studentFirstName}" for="firstName"/>
					<h:inputText value="#{student.firstName}" id="firstName"/>
					<h:outputLabel value="#{msg.studentLastName}" for="lastName"/>
					<h:inputText value="#{student.lastName}" id="lastName"/>
					<h:outputLabel value="#{msg.studentEmail}" for="email"/>
					<h:inputText value="#{student.email}" id="email"/>
				</h:panelGrid>
				<h:commandButton value="Update" action="#{studentController.updateStudent}"></h:commandButton>
			</h:form>
		</f:view>
	</body>
</html>

